#!/usr/bin/env python
# encoding: utf-8


"""
@file: sanjiaoxing_jiaoduzuizhi.py
@time: 2016/12/13 下午2:50
"""
# 013.角度（角度的三角函数值）的四则运算的最值问题---题型
# 已知一个等式。求关于三角形角度的三角函数的表达式最值问题
from mathsolver.functions.base import *
from bianjiaozhuanhuan import BianHuaJiao


def simp_triangle_eq(eq):
    """
    化简关于三角形的函数
    :param eq:
    :return:
    """
    l_expr, r_expr = eq.sympify()
    f = l_expr - r_expr
    symbs = list(f.free_symbols)
    if len(symbs) == 1:
        pass
    pass


# 对于等式用角化边，边化角肯定能得到一个角的值或者两个角的关系式子（一般来说是两个角相等
# input paramer1:eq; paramer2:poly
class JiaoDuZuiZhi001(BaseFunction):
    def solver(self, *args):
        eq = args[0]
        self.steps.append(['\\vartriangle ABC中，\\because ' + eq.printing(), '，由正弦定理得:'])
        simp_eq = BianHuaJiao(verbose=True).solver(eq).output[0]
        self.steps.append([simp_eq.printing(), ''])
        return self


if __name__ == '__main__':
    pass
